var isnn,isie
if(navigator.appName=='Microsoft Internet Explorer')
	isie=true ;
if(navigator.appName=='Netscape')
	isnn=true ;

var message = "" ;
function clickIE() {
	if (document.all) {(message);return false;}
}

function clickNS(e) {
	if (document.layers||(document.getElementById&&!document.all))
		if (e.which==1||e.which==2||e.which==3)
			(message);return false;
}

function key(e){
	if(isie) {
		if(event.keyCode==17 || event.keyCode==18 || event.keyCode==93) {
			return false;
		}
	}
	if(isnn){
		if(e.keyCode==17 || e.keyCode==18 || e.keyCode==93) {
			return false;
		}
	}
}

function disableselect(e){
	return false
}

function reEnable(){
	return true
}

if (document.layers)
{
	window.captureEvents(Event.KEYPRESS);
	window.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
}
else
{
	document.onmouseup=clickNS;document.oncontextmenu=clickIE;
}

document.onkeyup = key ;
document.onkeypress = key ;
document.oncontextmenu=new Function("return false")
document.onselectstart=new Function ("return false")

if (window.sidebar){
	document.onmousedown=disableselect
	document.onclick=reEnable
}

